<template>
    <component :is="otherParam.currentTabComponent"></component>

</template>

<script>
import {
  reactive,
} from 'vue';

export default {
  setup () {
    let otherParam = reactive({
      currentTabComponent:'a-boo' //定义变量，并设置默认组件
    })
 
    //定义方法
    const setPageTarget = (target)=>{
      otherParam.currentTabComponent = target
    }
    
    return {
      otherParam,
      setPageTarget
 
    }
 
 
}

}
</script>
